# -*- coding: utf-8 -*-


def connect():
	from db import mysql

	mysql.connect()

class _Connection(dict):
	def __init__(self):
		self["_db"] = {'mysql':None}
	
	def _getattr__(self, key):
		if key in self["_db"]:
			return self["_db"][key]
		else:
			raise AttributeError
	def _setattr__(self, key , value):
		if key in self["_db"]:
			self["_db"][key] = value
		else:
			raise AttributeError

conn = _Connection()